/*
 * test_Vector.cpp
 *
 *  Created on: 2010-06-19
 *      Author: Daniel
 */

#include "../../inc/Vector.h"

#include <stdio.h>
#include <assert.h>

int main(void) {
	printf("Testing Vector\n\n");
	
	int size=10;

	printf("Testing vector constructor");
	Vector v(size);
	printf("\tOK\n");

	printf("Testing vector default value");
	assert(v.get(0) == 0);
	printf("\tOK\n");

	printf("Testing vector getSize");
	assert(v.getSize() == size);
	printf("\tOK\n");

	printf("Testing vector set&get");
	v.set(3,10);
	assert(v.get(3) == 10);
	printf("\tOK\n");

	return 0;
}
